package com.djd.business.codegenerator.template;


import com.hkfs.fundamental.codegenerator.lazy.LazyCodeGenerator;

/**
 * 数据库对象自动生成
 */
public class WfbCodeGenerator {

    private static final String ROOT = ".";

    public static void main(String[] args) {
        String root = ROOT;
        String pojoRoot = root + "/hakim-wfb-business/hakim-wfb-dao/src/main/java";
        String daoRoot = root + "/hakim-wfb-business/hakim-wfb-dao/src/main/java";
        String mapperRoot = root + "/hakim-wfb-business/hakim-wfb-dao/src/main/resources/mappers";

        String pojoPackageName = "com.hakim.wfb.bean";
        String daoPackageName = "com.hakim.wfb.dao";
        LazyCodeGenerator lazyCodeGenerator1 = LazyCodeGenerator.create()
                .setRoot(root)
                .setPojoRoot(pojoRoot)
                .setDaoRoot(daoRoot)
                .setMapperRoot(mapperRoot)
                .setPojoPackageName(pojoPackageName)
                .setDaoPackageName(daoPackageName)
//                .setIncludeTables("tb_platform_transfer_record","tb_borrow", "tb_user", "tb_user_info", "tb_user_recharge_order", "tb_user_asset_info","tb_user_asset_info_log","tb_user_cash_detail","tb_user_withdraw_order","tb_borrow_repayment","tb_trade_flow_log")
                // .setIncludeTables("tb_accno_detail","tb_accno_total")
                .setConnection("202.85.222.202", 3306, "wfb", "root", "cys1qaz2wsx")
            /*    .putTableNameConfig("tb_account_file", "DycAccountFile")*/
                .usePageDaoBase();
        lazyCodeGenerator1.generate();
    }
}
